package com.scs.application.modules.finance.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 */
@Data
@Accessors(chain = true)
@TableName("finance_bill_to_hrp")
public class BillToHrp extends DataEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "主单id",
            length = "200",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String billNo;

    @EntityFieldAnnotation(
            text = "所属仓库ID",
            length = "200",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String storeCode;

    @EntityFieldAnnotation(
            text = "科室id",
            length = "255.0",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String deptId;

    @EntityFieldAnnotation(
            text = "供应商id",
            length = "255.0",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String supplierId;

    @EntityFieldAnnotation(
            text = "制单人",
            length = "30.0",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String busUser;

    @EntityFieldAnnotation(
            text = "审核人",
            length = "30.0",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String flowModifier;

    @EntityFieldAnnotation(
            text = "制单日期",
            length = "50.0",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String busDate;

    @EntityFieldAnnotation(
            text = "审核日期",
            length = "50.0",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String flowModified;

    @EntityFieldAnnotation(
            text = "科室",
            length = "30.0",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String deptCode;

    @EntityFieldAnnotation(
            text = "采料人",
            length = "30.0",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String empCode;

    @EntityFieldAnnotation(
            text = "患者姓名",
            length = "50.0",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String patientName;

    @EntityFieldAnnotation(
            text = "住院号",
            length = "100.0",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String hospitalNo;

    @EntityFieldAnnotation(
            text = "床位号",
            length = "50.0",
            not_null = false,
            default_value = "",
            comment = "床位号"
    )
    private String bedNo;

    @EntityFieldAnnotation(
            text = "hrp结算单-主表ID",
            length = "50.0",
            not_null = false,
            default_value = "",
            comment = "hrp结算单-主表ID"
    )
    private int iowId;

    @EntityFieldAnnotation(
            text = "hrp结算单-单据号",
            length = "50.0",
            not_null = false,
            default_value = "",
            comment = "hrp结算单-单据号"
    )
    private String iowNo;

    @EntityFieldAnnotation(
            text = "hrp推送是否成功",
            length = "50.0",
            not_null = false,
            default_value = "",
            comment = "0成功、1失败"
    )
    private String resultCode;

    @EntityFieldAnnotation(
            text = "成功或者失败原因",
            type = EntityFieldType.LONGTEXT,
            length = "500",
            not_null = false,
            default_value = "",
            comment = "成功或者失败原因"
    )
    private String resultContent;


    @EntityFieldAnnotation(
            text = "HRP推送发票结果",
            length = "10",
            not_null = false,
            default_value = "",
            comment = "hrp推送是否成功，0成功、1失败"
    )
    private String invoicePushCode;

    @EntityFieldAnnotation(
            text = "HRP推送发票结果描述",
            type = EntityFieldType.LONGTEXT,
            length = "500",
            not_null = false,
            default_value = "",
            comment = "成功/失败原因"
    )
    private String invoicePushMsg;

    // creator ,在父类中处理


    // gmt_create ,在父类中处理


    // modifier ,在父类中处理


    // gmt_modified ,在父类中处理

}
